package ooday01_homework;

public class Book {
    String name;
    int b_Id;
    String author;

    Book() {

    }

    Book(String name, int b_Id, String author) {
        this.name = name;
        this.b_Id = b_Id;
        this.author = author;
    }

    void open() {
        System.out.println(name + "打开了");
    }

    void off() {
        System.out.println(name + "关上了");
    }

    void show() {
        System.out.println("这本书的信息如下：");
        System.out.println("书名：" + name);
        System.out.println("作者：" + author);
        System.out.println("序号：" + b_Id);
    }

    void borrow(String name) {
        System.out.println(name + "借走了" + this.name + "序号为" + b_Id);
    }


}
